package jk.fox.exchange.server.handler;

import jk.fox.common.payload.request.Request;
import jk.fox.common.payload.response.RpcResponse;

/**
 * @author cuichao
 * @Description: ExchangeHandler
 * @Date: create in 2020/4/19 13:42
 */
public interface ExchangeHandler {
    /**
     * 执行交换器逻辑
     * @param request
     * @return
     * @throws Exception
     */
    RpcResponse handle(Request request) throws Exception;

}
